package com.linck.im.model.constant;

import com.linck.im.model.proto.ProtoMsg;

/**
 * 消息常量
 *
 * @author: linck
 * @create: 2021-01-25
 */
public class Msg {

    public static final ProtoMsg.SysMsg LOGIN_FAILURE = ProtoMsg.SysMsg.newBuilder()
            .setCode(ProtoMsg.MsgCode.LOGIN_FAILURE)
            .setMsg("账户或密码错误")
            .build();

    public static final ProtoMsg.SysMsg LOGIN_SUCCESS = ProtoMsg.SysMsg.newBuilder()
            .setCode(ProtoMsg.MsgCode.LOGIN_SUCCESS)
            .setMsg("登录成功")
            .build();

    public static final ProtoMsg.SysMsg HEART_OVER_TIME = ProtoMsg.SysMsg.newBuilder()
            .setCode(ProtoMsg.MsgCode.HEART_OVER_TIME)
            .setMsg("心跳超时")
            .build();
}
